package VisitorPattern.example;


import VisitorPattern.example.framework.Element;
import VisitorPattern.example.framework.Visitor;

import java.util.Iterator;

public abstract class Entry implements Element {
    public abstract String getName();

    public abstract int getSize();

    public Entry add(Entry entry) throws FileTreatMentException {
        throw new FileTreatMentException();
    }

    public Iterator<Entry> iterator() throws FileTreatMentException {
        throw new FileTreatMentException();
    }

    public String toString() {
        return getName() + "(" + getSize() + ")";
    }
}
